package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 日记对象 sys_note
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Data
public class SysNote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 用户id */
    private String userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 日记内容 */
    private String content;

    /** 日记分类 */
    @Excel(name = "日记分类")
    private String noteType;

    /** 时间标签 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间标签", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timeMark;

    /** 加盐校验 */
    @Excel(name = "加盐校验")
    private String saltCode;

    /** 加密方式 */
    private Integer encodeType;
    private Integer docType;

    /** 删除标志 */
    private Boolean deleteFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("noteType", getNoteType())
            .append("timeMark", getTimeMark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("saltCode", getSaltCode())
            .append("encodeType", getEncodeType())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
